The online racing simulator
Searching in All forums
(951 results)
Yisc[NL]
S3 licensed
Quote from Popughini :Someone could make me a message when you walk through the 302 node say speed? please


Event OnLapperStart()
RegisterNodeAction( "BL1" , 302 , DisplaySpeed,"" );
EndEvent

Sub DisplaySpeed( $userName ) # Lapper Event
globalMsg( GetCurrentPlayerVar("NickName") . " ^7drove " . GetCurrentPlayerVar("InstantSpeed") . GetCurrentPlayerVar ("UnitSpeed") );
EndSub

Yisc[NL]
S3 licensed
Quote from Popughini :Download system please?

I don't think anyone will reply to a posting in a 5 year old topic.
Not to mention the fact that the topic starter is no longer welcome on this forum.
Registration system - V1.05
Yisc[NL]
S3 licensed
Registration system - V1.05 (to add an extra layer of protection against unwanted people on your server)

Change the extension of the file to .lpr and add them to addonsused.lpr to be able to use it.
Yisc[NL]
S3 licensed
I'm usualy not participating in topics like these, since I know that people (mostly online) will keep moaning anyway, but this time I want to drop in my 2 cents.
If you would realise where this game has came from (I started playing just before S2 was finished) to what it is now, you can only say that Scawen is doing a superb job.
Yes, he does it at his own pace and works mostly on the things he find relevant, but then again, that is his choice to make.
He stopped working for a boss, because he was fedup of other people telling him what to do, when to do it and how he should do it, while he felt (and right he is) that he could do much better then those game selling companies.

Just take the last patch for example.
Many people will feel it was time wasted on optimalisations, while the current hardware is strong enough to run the game properly anyway.
While that is mostly true, it was creating a basis for the game to build on, so when the graphics will drasticly be improved, the game will still run fine on most of the hardware.
Besides that, the game is incredible stable as it is.
Network layer is one of the best I've seen in any game and the game gives people so much freedom to play as they wish as well.
Many cars to choose, many tracks (and combos within one track) to choose, the option to create and store your own layouts and then there's the option to do all sorts of things using the Insim protocol.
How many games have so much freedom for the players and is very cheap as well.
You only have to pay once (okay, per license (S1,S2, etc.) and then you can play as much as you want and get totaly free updates for a very long time to top it off.

As said, I'm not going to waste valuable time on trying to stop all the moaners from moaning (sadly the internet in general has become a place of people moaning, bitching, trolling, etc.) as it will be undoable, but realise what this game already is and what it is giving you in relation to what you have paid for it.
Yisc[NL]
S3 licensed
Quote from 5Loody-g27 :Can you fix it?
Because they actually cause errors in the program is running correctly

I think I can.
Will send you a private message on this forum, telling you my email address, so you can mail your whole Lapper directory to me.
Yisc[NL]
S3 licensed
The message actualy is a bug within Lapper, where an incorrect value is crashing the application, while that should be handled properly.
It has to do with handling arrays or a value which isn't converted to the proper data-type.
Such errors have taken me a long time to figure out, but it's doable.
Yisc[NL]
S3 licensed
The error in line 528 probably has to do with a sub-routine being called without the right number arguments like $KeyFlags or $KeyFlags,$id
It's happening in the onconnect event.

The error in line 559 has to to with a button that is opened in the onnewplayerjoin event, but hasn't got all the needed parameters (like witdht, height, length ect.)

The error in line 636 isn't specific enough to determine here without seeing the code, but is happening in the onconnectwns2 event.

The final two warnings are telling you that files admin2.txt and admin1.txt can't be found on the specified location.
If memory serves me right, they are used in one of the CIF modules build by Kravy.
Yisc[NL]
S3 licensed
I'm still not sure I totally understand what the button should do for you and any other players.
The way I made it now, is that every player gets his own button and when he clicks on it, his own button will go away for 6 seconds.
But when I click my button at let's say 22:30:00, it will come back to me at 22:30:06.
While if you click yours at 22:30:02, it will come back to you at 22:30:08.

On the other hand, if it was one button shown to all connected players (that isn't possible, but there is a way to pretent it is the same button for everyone), it would come down to the first player clicking it, then it goes away on everyones screen and will come back to everyone after 6 seconds.

I have no idea what you mean by "the bump 2 cars colliding is expelled".
Lapper can't detect colliding cars at all, so if you are looking to make that work, you can stop here and now.
Yisc[NL]
S3 licensed

openPrivButton( "event",78,120,20,10,10,-1,ISB_DARK,"^1EVENT",ButtonEvent );

Sub ButtonEvent( $KeyFlags,$id )
closePrivButton("event");
PrivDelayedCommand( 6, ButtonEvent2 );
EndSub

Sub ButtonEvent2( $KeyFlags )
openPrivButton( "event",78,120,20,10,10,-1,ISB_DARK,"^2EVENT",ButtonEvent );
EndSub

I have placed the OpenPrivButton in the OnConnect Event, so that everyone who connects to the server, gets that button.
As soon as you click it, ButtonEvent is called, which closes the button and then executes a DelayedCommand after 6 seconds, to go to ButtonEvent2.
In that event, the button is opened again and when you click it, ButtonEvent is called again.

I hope this is what you want, since you can't draw global buttons.
There is a way to work around that, but I haven't got time to work that out right now.
Yisc[NL]
S3 licensed
Should that button be a central button for all players, or one for every player?
Yisc[NL]
S3 licensed
With a scheduled event there isn't a need to display a button at all.
Just make it execute a piece of code every 6 seconds.
Maybe you could explain a bit more, what it is you want Lapper to do, since I am not totaly sure what you want.
Yisc[NL]
S3 licensed
At least it should be:

UserGroupFromFile( "admin", "./../admin.txt" );

./ to indicate a file will be loaded
../ to go one folder up from the 'includes' directory
Yisc[NL]
S3 licensed
As promised, I am releasing registration system version 1.04
With the following changes:
  • Changed show "registered name" on logon, instead of "LFS username"
  • Added configuration screen to:
    • Set Teamname
    • Set who is allowed to register accounts
    • Set if message is shown when someone logs in
  • Excluded admins from the need to login
  • Added option so that admins can create an account for users
The configuration screen can be opened by admins using: !confreg
The registration screen can be opened by admins using: !register

Download the file, rename it to 'reg_system.lpr' and place it in the 'includes' directory of you Lapper directory.
Also make sure to add the following line to section 'General includes' of file 'addonsused.lpr' which can also be found in the 'includes' directory:

include( "./reg_system.lpr");

The script is tested as good as possible, but there could be one or two bugs.
Please notify me if you ran into a bug and I will try to fix it as soon as possible.
Although I am not looking for any more features to add to this script, I am willing to consider any wanted features.
Yisc[NL]
S3 licensed
That might be possible, but it would be easier to use the scheduler of Lapper and run a task every 6 seconds (so run the task every minute at 0,6,12,18,24,30,36,42,48,54 seconds).
Yisc[NL]
S3 licensed
I spent 3 hours yesterday evening on re-writing the registration system.
I've added a configuration module to be able to tweak a couple of settings and changed most of the script to coop with the new added settings.
After some testing, I think it's nearly ready to be released, which will happen tonight or tomorrow evening.
Yisc[NL]
S3 licensed
Quote from 5Loody-g27 :Can you edit the file me please? This is another request then it closes the subject.

Sure I could do that, but you won't learn anything from it.
Appearantly, you don't want to learn how to code in Lapper, but want someone else to code for you.
Then your initial question wasn't right and besides that, you can't expect people to work for you for free.
I took the time to give you answers, coded things for you and still the questions and requests keep coming.
That doesn't feel good at all and happens too many times here.
Yisc[NL]
S3 licensed
Quote from 5Loody-g27 :I do not want to show to all the group.

If you don't want all admins to be able to use !register, you could create a seperate file and add names of people who will be authorised to use the command, to that file.
Then add a command to load that file and check wether someones name is in it or not.
Yisc[NL]
S3 licensed
Quote from 5Loody-g27 :Is it possible that my service is simple.
I want to be displayed when you enter log on only window
and window register account to be her special administrator is dedicated to open it if send command "!register"

I tried a lot done that, and I could not

It's possible to assign the register window to admins only.
You need to add a check if someone is in the admingroup, when the !register command is executed.
Again, not really hard to accomplish if you know the basics of coding in the Lapper environment.
Yisc[NL]
S3 licensed
Quote from ab12 :Hello, I saw several cruise insim servers and I want to create my own insim me, I did some research and found out that better InSim.NET is the best but I do not know what to do. Can you help me?

If you don't know what to do, I think it would be best to download an already finished Cruise program and start studying that.
Building something from scratch without any knowledge, doesn't sound like a good thing to do.
If you do know something about coding, then it might be an idea to use LFS Lapper as a start, since that will handle a lot of things for you, while you can concentrate on building screens, actions, etc.
Yisc[NL]
S3 licensed
Quote from 5Loody-g27 :GlobalMsg ("^7".$userName."^7 has logged into the server");

Not license the name, registered in the window registration User Name

And what have you tried to accomplish what you want?
Again, this isn't rocket science to get it done.
In fact, the answer is in the same part of the code as where that GlobalMsg is found.
Good luck finding the answer Wink
Yisc[NL]
S3 licensed
Quote from 5Loody-g27 :if click button "Login" send account name in the chat .

You could have easily made that your self, since it only requires you to add one line to the script.
This time I did it for you, but it will be the last time I helped now.
Coding is something people should do themselfs and if you get really stuck (which isn't the same as copy/paste the code from someone else, fire it up and then start screaming what's wrong and/or what you want it to do), then present the code you made so far and describe the problem (and all you tried in order to solve it) as detailed as possible.

Registration & Login system V1.03 - 13-09-2015 - Added message in chat, when someone logs in
Yisc[NL]
S3 licensed
Quote from 5Loody-g27 :How can it?

Have a look at the registration system I posted earlier in this thread.
All the code to store/retrieve/change data, is in there.
Yisc[NL]
S3 licensed
Quote from 5Loody-g27 :Is there a way to control the existing accounts and delete them?

There are some ways to retrieve and change the stored data, but there is no way to delete any stored data.
Yisc[NL]
S3 licensed
Quote from 5Loody-g27 :I want the amendment to the accounts , the account manually add and delete account

That wouldn't be possible with Lapper.
You can compare data written in text files, or you can add and change things in the Lapper database, but you can't take data out of it.
Yisc[NL]
S3 licensed
Quote from 5Loody-g27 :In any path to save your UserName and password?

With my system, the details are saved in the Lapper database.
So no need to set a path to a file.
FGED GREDG RDFGDR GSFDG